import Vue from 'vue'
import Router from 'vue-router'

import Index from '../components/Index'
import List from '../components/user/List'
import Login from '../components/Login'
import Shop from '../components/Shop'
import Transaction from '../components/Transaction'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', redirect: '/Login'},
    {
      path: '/index', name: 'Index', component: Index
    },
    {
      path: '/users', component: List
    },
    {
      path: '/login', component: Login
    },
    {
      path: '/shop', component: Shop
    },
    {
      path: '/transaction', component: Transaction
    }
  ]
})
